const x = 10;
console.info(`${x}`);

((foo) => {
  return foo;
})();

const num = 50;
let myFunc1: () => number = () => num;
myFunc1 = () => setTimeout(() => {
  // myFunc is considered used
  myFunc1();
}, num);

const x = 10;
alert(x);

// foo is considered used here
myFunc(function foo() {
  // ...
}.bind(this));

(function(foo) {
  return foo;
})();

var myFunc;
myFunc = setTimeout(function() {
  // myFunc is considered used
  myFunc();
}, 50);

// Only the second argument from the destructured array is used.
function getY([, y]) {
  return y;
}
getY(["a", "b"]);